export interface PositionListQuery {
  keyword?: string
  workType?: number
  workCity?: number
  period?: number
  salary?: number
  positionType?: number
  isFavorite?: number
  ignoreStatus: boolean
  page: number
  size: number
}

export interface PositionItem {
  positionId: number
  positionName: string
  salary: string
  tags: string[]
  companyName: string
  workCity: string
  workType: string
  period: string
}

export interface PositionPageList {
  records: PositionItem[]
  total: number
  size: number
  current: number
  pages: number
}

export interface PositionDetailRequest {
  positionId: number
  userId: number
}

export interface PositionDetail {
  id: number
  positionName: string
  salary: string
  tags: string[]
  companyName: string
  workCity: string
  workPlace: string
  workType: string
  period: string
  startDate: string
  recruitNum: number
  positionDesc: string
  positionRequire: string
  publishTime: string
  deadline: string
  isRecommend: boolean
  isFavorite: boolean
  isApply: boolean
}

export type PositionListResponse = ApiResponseData<PositionPageList>
export type PositionDetailApiResponse = ApiResponseData<PositionDetail>
